// @ts-ignore
import Mock from 'mockjs'

// 保持代理的统一性
Mock.mock('/api/menu/getmenutablelist', 'get', {
  data: [
    {
      id: 0,
      name: '系统管理',
      url: '/main/intro',
      type: 1,
      createtime: Date.now(),
      updatetime: Date.now(),
      children: [
        {
          id: 1,
          name: '核心技术',
          url: '/main/intro/overview',
          type: 2
        },
        {
          id: 2,
          name: '商品统计',
          url: '/main/intro/dashboard',
          type: 2
        }
      ]
    },
    {
      id: 3,
      name: '系统设计',
      url: '/main/system',
      type: 1,
      createtime: Date.now(),
      updatetime: Date.now(),
      children: [
        {
          id: 4,
          name: '用户管理',
          url: '/main/system/user',
          type: 2
        },
        {
          id: 5,
          name: '部门管理',
          url: '/main/system/depart',
          type: 2
        },
        {
          id: 6,
          name: '菜单管理',
          url: '/main/system/menu',
          type: 2
        },
        {
          id: 7,
          name: '角色管理',
          url: '/main/system/role',
          type: 2
        }
      ]
    },
    {
      id: 8,
      name: '商品中心',
      url: '/main/goods',
      type: 1,
      createtime: Date.now(),
      updatetime: Date.now(),
      children: [
        {
          id: 9,
          name: '商品分类',
          url: '/main/goods/classify',
          type: 2
        },
        {
          id: 10,
          name: '商品信息',
          url: '/main/goods/info',
          type: 2
        }
      ]
    },
    {
      id: 11,
      name: '商品中心',
      url: '/main/tale',
      type: 1,
      createtime: Date.now(),
      updatetime: Date.now(),
      children: [
        {
          id: 12,
          name: '你的故事',
          url: '/main/tale/stories',
          type: 2
        },
        {
          id: 13,
          name: '故事列表',
          url: '/main/tale/talelist',
          type: 2
        }
      ]
    }
  ],
  totalCount: 10
})

// getMultiplexListAPI('/menu/getmenutablelist', data).then((res) => console.log(res.data))
